<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><fmt:message key="flightTransferProtectList.title"/></title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
function doSave(){
  document.forms[0].method="post";
  document.forms[0].action="flightTransferProtect.html?method=save&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>";
  document.forms[0].submit();
}
function saveAndSubmit(){
  document.forms[0].method="post";
  document.forms[0].action="flightTransferProtect.html?method=save&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&nextPoint=Y&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>";
  document.forms[0].submit();
}
</script>

<script src="<c:url value="/scripts/datetime.js"/>" language="javascript"></script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="flightTransferProtect" method="post" styleId="flightTransferProtectForm">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">
    <fmt:message key="flightAdjustProtectEdit.heading"/></td>
  </tr>
  <tr>
    <td height="30" class="home-search-space">&nbsp;<fmt:message key="common.warning"/></td>
  </tr>
  <logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
  </logic:messagesPresent>
  <tr id="messageShowTrId" style="display:none;">
	<td valign="top" class="black12">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td class="arror_bg_s">
	<span class="arror_title_s"> 
        保存信息成功!<br/>
     </span>
    </td>
    </tr>
    </table>
	</td>
	</tr>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
               <tr> 
                <td class="home-table-tool-content"> 
                  <input name="Submit33" type="button" class="home-inputBtn" value="保存" onclick="doSave()" 
		            <logic:messagesNotPresent>
                     <c:if test="${(null ne saveAndSubmit)|| ('2' eq param.type)}">disabled</c:if>
                     </logic:messagesNotPresent>
		          >
                   <input type="button" class="home-inputBtn"  onclick="saveAndSubmit()" value="保存并提交"
                     <logic:messagesNotPresent>
                     <c:if test="${(null ne saveAndSubmit)|| ('2' eq param.type)}">disabled</c:if>
                     </logic:messagesNotPresent>
			        />
                  <input name="reset" type="reset" class="home-inputBtn" value="重置"  
		            <logic:messagesNotPresent>
                     <c:if test="${(null ne saveAndSubmit)|| ('2' eq param.type)}">disabled</c:if>
                     </logic:messagesNotPresent>
		          >
        		  
                  
		       </td>
              </tr>
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                       <tr>
							<td width=20% class="home-subtable-view-tdstyle-right">进港航班号：</td>
							<td width=30% class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.flightNumIn}"/></td>
							<td width=20% class="home-subtable-view-tdstyle-right">始发航站：</td>
							<td width=30% class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.dan}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">计划到达时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.sta}" pattern="yyyy-MM-dd HH:mm"/></td>
							<td class="home-subtable-view-tdstyle-right">预计到达时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.eta}" pattern="yyyy-MM-dd HH:mm"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">中转航站：</td>
							<td colspan=3 class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.eta}" pattern="yyyy-MM-dd HH:mm"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">出港航班号：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.flightNumOut}"/></td>
							<td class="home-subtable-view-tdstyle-right">目的航站：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.laan}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">计划出港时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.std}" pattern="yyyy-MM-dd HH:mm"/></td>
							<td class="home-subtable-view-tdstyle-right">预计出港时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.etd}" pattern="yyyy-MM-dd HH:mm"/></td>
						  </tr>
						 	   <tr>
							<td class="home-subtable-view-tdstyle-right">中转总人数：</td>
							<td class="home-subtable-view-tdstyle-left"><a href="passengerInfo.html?ftiId=<c:out value='${flightTransferWait.ftiId}'/>&flag=transfer">&nbsp;<c:out value="${flightTransferWait.personSumCount}"/></a></td>
							<td class="home-subtable-view-tdstyle-right">中转行李总数：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.luggageSumCount}"/></td>
						  </tr>
						  <tr>
						    <td class="home-subtable-view-tdstyle-right">中转行李总重量：</td>
							<td  class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.luggageSumWeight}"/></td>
							<td class="home-subtable-view-tdstyle-right">中转时间间隔：</td>
							<td  class="home-subtable-view-tdstyle-left"><c:out value="${useTime}"/></td>
						  </tr>

                           <tr> 
                            <td class="home-subtable-view-tdstyle-right">公务舱人数：</td>
                            <td class="home-subtable-view-tdstyle-left"></td>
                            <td class="home-subtable-view-tdstyle-right">经济舱人数：</td>
                            <td class="home-subtable-view-tdstyle-left"></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">总人数：</td>
                            <td colspan=3 class="home-subtable-view-tdstyle-left"></td>
			              </tr>
                        </table>
                      </td>
                    </tr>
			         <tr> 
			          <td>&nbsp;</td>
			         </tr>     
         
                    <tr> 
                      <td class="home-table-tool-content">餐食安排指示</td>
                    </tr>
                    
                    <tr> 
						<td valign="top" class="home-tab-line"> 
							<table width="100%" border="0" cellspacing="1" cellpadding="2" class="home-subtable-bgcolor">
								<tr height=25> 
									<td width="40%" class="home-table-tool-conten">餐食名称</td>
									<td width="20%" class="home-table-tool-conten">份数</td>
									<td width="20%" class="home-table-tool-conten">单价</td>
									<td width="20%" class="home-table-tool-conten">合计</td>
								</tr>
								<c:forEach var="results" items="${TRANSFER_FOOD_LIST}" varStatus="status">
								<tr height=25> 
									<td class="home-tab-content">&nbsp;<c:out value="${results.foodName}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.amount}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.price}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.total}"/></td>
								</tr>
								</c:forEach>
								<tr height=25> 
									<td class="home-tab-content"><b>总计：</b></td>
									<td class="home-tab-content"><b><c:out value="${totalAmount}"/></b></td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content"><b><c:out value="${totalMoney}"/>元</b></td>
								</tr>
							</table>
						</td>
					</tr>
                               
         <tr> 
           <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">交接地点：</td>
                            <td width=20% class="home-subtable-view-tdstyle-left"><c:out value="${flightTransInstruction.foodAddress}"/></td>
                            <td width=20% class="home-subtable-view-tdstyle-right">期望完成配餐时间：</td>
                            <td width=20% colspan=3 class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransInstruction.foodTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right">指示发布人：</td>
                            <td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransInstruction.operator}"/></td>
                            <td class="home-subtable-view-tdstyle-right">发布时间：</td>
                            <td colspan=3 class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransInstruction.operatime}" pattern="yyyy-MM-dd HH:mm"/></td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right"><font color="red">*</font>备注：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><html:textarea property="foodAcceptMemo" styleId="foodAcceptMemo" styleClass="home-table-inputbox" cols="81" rows="2"/> </td>
                          </tr>
                          <tr> 
                            <td class="home-subtable-view-tdstyle-right"><font color="red">*</font>接收人：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="foodAcceptor" styleId="foodAcceptor" styleClass="home-table-inputbox" /> </td>
                            <td class="home-subtable-view-tdstyle-right"><font color="red">*</font>接收时间：</td>
                            <td class="home-subtable-view-tdstyle-left"><html:text property="foodAcceptDate" styleId="foodAcceptDate" styleClass="home-table-inputbox" />
			<img src="images/date.gif" border="0" onclick="fPopCalendar(foodAcceptDate,foodAcceptDate);return false"> </td>
                         
                          </tr>
                        </table>
             </td>
           </tr>
                  </table> 
                </td>
              </tr>
              
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
<script>
//保存信息处理 add by kellen
if("1"=='<c:out value="${msg}"/>'){
	//alert("保存信息成功!");
	var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="";
	//window.location=window.location;  
}else if("-1"=='<c:out value="${msg}"/>'){
	alert("保存信息失败!");
	 
}else if("2" ==  '<c:out value="${flag}"/>'){
	//window.location=window.location;  
}


</script>
</html>

